package org.sy.lab.多线程基础._2_同步._2_ReentrantLock._2_读写锁;

import java.util.concurrent.TimeUnit;

public class Write implements Runnable {
	
	private Counter counter;
	
	public Write(Counter counter) {
		this.counter = counter;
	}
	
	@Override
	public void run() {
		try {
			TimeUnit.SECONDS.sleep(3);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
		counter.add();
	}
}
